package com.dubbo.framework.protocol.http;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 处理Tomcat中的servlet
 *
 * @author by Mr. Li 2021/4/28 18:42
 */
public class DispatcherServlet extends HttpServlet {
    private static final long serialVersionUID = 74758638274569618L;

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        new HttpServerHandler().handler(req, resp);
    }
}


